package com.fy.dao;


import com.fy.entity.EpcUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface EpcUserDao {
    /**
     * 新增
     * @param record
     * @return
     */
    public Long addEpcUser(EpcUser record);

    /**
     * 根据id查询
     * @param record
     * @return
     */
    public EpcUser getEpcUserById(EpcUser record);

    /**
     * 根据身份证号查询
     * @param record
     * @return
     */
    public EpcUser getEpcUserByIdCard(EpcUser record);

    /**
     * 根据id修改
     * @param record
     * @return
     */
    public Long updateEpcUserById(EpcUser record);


    /**
     *批量删除
     */
    void deleteEpcUserBatch(Map<String, Object> map);

    /**
     * 查询有效/无效的数量
     * @param status
     * @return
     */
    Integer getEpcUserCountByStatus(@Param("status")Integer status,@Param("day") String day);

    void editEpcUserTempByCard(EpcUser epcUser);

    List<EpcUser> getEpcUserListPage(EpcUser record);
}
